//
//  LGSettingController.m
//  微博
//
//  Created by MS on 15-12-27.
//  Copyright (c) 2015年 MS. All rights reserved.
//

#import "LGSettingController.h"
#import "BasicSetting.h"
#import "LGCommenSettingController.h"
@interface LGSettingController ()

@end

@implementation LGSettingController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setUpGroup1];
    [self setUpGroup2];
    [self setUpGroup3];
    [self setUpGroup4];
   
    
}


-(void) setUpGroup1
{
    LGBadgeItem * account = [LGBadgeItem itemWithTitle:@"账号管理"];
    account.badgeValue = @"10";
    
    LGGroups * group = [[LGGroups alloc] init];
    group.items = @[account];
    [self.groups addObject:group];
    
}
-(void) setUpGroup2
{
    LGArrowItem * photo = [LGArrowItem itemWithTitle:@"我的相册"];
    
    LGArrowItem * set = [LGArrowItem itemWithTitle:@"通用设置"];
    set.jumpClass = [LGCommenSettingController class];
    
    LGArrowItem * safe = [LGArrowItem itemWithTitle:@"隐私与安全"];
    
    LGGroups * group = [[LGGroups alloc] init];
    group.items = @[photo,set,safe];
    [self.groups addObject:group];
    
}

-(void) setUpGroup3
{
    LGArrowItem * segust = [LGArrowItem itemWithTitle:@"意见与反馈"];
    
    LGArrowItem * about = [LGArrowItem itemWithTitle:@"关于微博"];
    
    
    LGGroups * group = [[LGGroups alloc] init];
    group.items = @[segust,about];
    [self.groups addObject:group];
    
}

-(void) setUpGroup4
{
    LGLabelItem * unlogin = [[LGLabelItem alloc] init];
    unlogin.text = @"退出登录";
    
    LGGroups * group = [[LGGroups alloc] init];
    group.items = @[unlogin];
    [self.groups addObject:group];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
